package com.ch.dream.asynctask;

import org.json.JSONObject;

import android.content.Context;

import com.ch.dream.base.BaseRequestAsyncTask;
import com.ch.dream.common.CommonRequestUrl;
import com.ch.dream.net.MyHttpAPI;

public class MainRequestAsyncTask extends BaseRequestAsyncTask{
	
	private MyHttpAPI myHttpAPI = new MyHttpAPI(CommonRequestUrl.MAIN);
	public MainRequestAsyncTask(Context context, RequestServerListener requestServerListener){
		super(context, requestServerListener);
	}
	@Override
	protected Object doInBackground(Object... arg0) {
		try{
			return myHttpAPI.requestForJson((JSONObject)arg0[0]);
		}catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
}
